iiply function

Split an image, apply function, recombine the results as an image