optimized uniform image function

...much, much more efficient, only doing the resource intensive
calculations once per resolution size instead of (derp) for each image.