Fix small zipped images bug introduced by commit e12a9dc408