Create photoData entity. Photo state save has been added.