Efficiency has increased so that 300x300 images take about 2-10 seconds to process each, depending on csame and cdiff. Also write_image has been added to create the composite image. Next steps are to continue increasing efficiency