decode method is now decodeFromBitmapData