merge all figures