fix release build on windows
support draw jpeg with canvas

Signed-off-by: 3dseals <lional.king@gmail.com>