fixed bug images losing colorspace when using resizeCanvas