Implemented cleanAlpha, colorMask, and debugMode.
Moved reusable Resize logic from BasicPacker to _base packer.