Fix to import of images which cannot be properly processed.