Added a Sprite class to manage BitmapData related issues
Updated to make Sprite class work