Adds dpi to the Image info dictinoary.
Addes tests