Added support for overriding screen.width and screen.height