Deleting unnecessary image files