fixed problems in the admins/photos and users controller