cleaned up code for translating paths.
cleaned up code for translating paths.

pdfkit/pdfkit,christhekeele/pdfkit,ContinuityControl/pdfkit,dimko/pdfkit,christhekeele/pdfkit,asomanescu/pdfkit,asomanescu/pdfkit,cdwort/pdfkit