Added imageSmoothing for upscaling, tweaked handling of HDPI scaling to work with upscaling.