Add if statement for photo_image