export offline photo impl part 1