Ported from GD to Imager after I googled a bit about GD transparency problem (which manifested in black icon background). Imager also solved image quality problems :-)