Use transparent canvas on JpegDecode in api.js