Fixed uniform sampler

Previously, samples were not correctly distributed in a uniform fashion
in image space.  This commit fixes that problem.