Make image DPI configurable