allows jpgjs to deal with datauri images