issue #36, cache photo before transform (rotate)