task bar icon has black box around it

Hi,

i have a dock icon and it has a black box around it although the png is transparent behind the icon.

i suspect i need a mask, but i have no idea what that is, or how to create one!

is there a tutorial somewhere?

Regards,

Russ