- added version 3 that performance improved with the use of bitmapdata