save photo data