allows jpgjs to deal with datauri images

without running into CORS restrictions
split into three lines