frame_photo : some cleaning up of the code.