transformCoordinates() almost working!

TODO: check height which is still broken