Changed Lut functions so they take the output RoD in parameter as well (typically to copy from different image sizes)