Fix NPE when image is not found