deleting unnecessary image files