- pre calculate the UV dot product - use image width and height converted to floats in the inner loop.