Remove drawBorder, drawPageNumber and drawLine function