added jpeg-gps function