fixed cross origin image draw, so that canvas.toDataURL can work