edited json builder for photos