added getimage route to api.