file type bug fixed
base64 encoded image bug fixed