COD: add resampler to apply the final transform
COD-NT: write the image out to file
DBG: transform applied and image written out