Add support for multiple DPI images, fixes #541.