added image dpi setting
Merge pull request #2 from hvdgeest/patch-1

added image dpi setting