deskewText.cc changed into a function