server side getImage, fix package.json to install recursively