added the change to the directive to send the /imgToken/upload-image as a POST request