Corrected offset error in rendering methods.
Implemented pixel scaling display in viewport.