Fixes #11: added customization of dpi for images. this allows image upscalling or downscalling.