photo orientation bug fixed