ported Image.createPolygon() from Flashpunk

tested on native and flash