Added example code that combines images.