add base64 and image data method for uploader