Deleting non needed images.