Improved deleting of photos