Fixed condition when image is not found