Text this: Restoration and Segmentation of Old Jawi Manuscripts using Variational Image Inpainting and Active Contour Models