renaming and deleting unused images