Moved implementation of parsePage into TessReader.scala.