Properly rendering the modified image

...using exactly the same function as I had before, only I wasted hours realizing that this is exactly what I needed!!!