fixed handling of base64 data url image