Order-independent Image Compositing in Heterogeneous Environments