deletes unnecessary photo