finished image recolour and smoothing functions