Changed controller to accept base64 encoded image (string) instead of image File