Add api calls to server for images