fix the photo orientation,   added edit components.