Delete photo_id from popular_images table, and a missing admin check