deleting extra images and classes