fixed bug: alpha value lost on Image.resize()