add routes for api calls to return image and event data as json