changed the set_as_front_page_photo_if_first method to check if photo is processed