Changed rendering engine to use a variable instead of a const for determining screen resolution