return proper err when no image is found