graphics are now drawn in the center of the frame regardless of frame size and scaling