changed old secure_photo_display to appropriate place