Improve template of Photo entity