moved part of FlxSprite's replaceColor into FlxBitmapDataUtil