Code of those random uploaded images is probably in the index.php. Just open the index.php in some text editor, and search through all the lines, or post the index.php code on PasteBin.