Fixed clipping of graphics by computing the enclosing rectangle to pixel resolution.