added helper variables for screen centering without canvas support