added script for merging continuous image stack