Compatibility fix in IconLayerItem class