fixed: error if no image is found