Use mergeImageLayers over flattenImages