fix redundants fabs() and remove faulty set of pixel elevation