added way to calculate renderer and window size ratio

this is important to get correct mouse coordinates.
also improved the point class