changed so that if flag = 0 (default for no flag) is passed to sp_image_write(), then append_cxi() will write new file as previously