Merge visible layers instead of flattening
so as to preserve transparency when saving to png.