Fixing conversion bug with alpha layer.