fixed test image util so that it doesn't crash if the image is missing.