added photo entity to entry and updated doc