added getFrame and getFrames function (returns bitmapdata of each frame)