Use integers when positioning on the target canvas

This avoids blurred images after view center changes (dx, dy)
and at fractional zoom levels (dw, dh).
Merge pull request #1135 from ahocevar/no-blur

Use integers when positioning on the target canvas