Added CORS support and client for image upload