take care of the screen scale when drawing background. Fixes #1

Fixed a bug that creates blurry backgrounds on retina screens.
tick resolution bug fix.