Transfered most of the box drawing responsibility to ImgBox class.