changing images and deleting unused files