Fix issue in Item#rasterize() when resolution is not 72 DPI.

Closes #412.