dedup.image: img.convert can also raise that crazy stuff