added screen scaling for custom resolutions