Fixed bug with finding image files.