support fillRule in image rendering

I need to use globalCompositeOperation in image rendering.