Deleting photos, deleteting photos from deleted galleries, bug fixes