issue #36: cache photo before loading the editor