Endpoint for creating photos