Added base64 image upload functionality