added missing dispose call in 'drawToBitmapData'