number of spectrum points is now calculated based on image shape and position of the beam center...