Bug fix in Image::halveRoi: template parameter was not good + adjust
code to match the one that is in openfx-io