Fix #10 retina view rendering and simplify maths