Added Pixel size to GUI, and controller to fix distance calcaluation