Fixed vertical line bug in fitEdge function of ImageClass