fix deleting single image file