added Polygon draw to bitmapdata and refactored