Remove unnecessary images and batches