wiring up a imageService and creating functions both inside and out of the controller to save a base64image string to an image file on the  server