Added new options for offset and borderBox, changed calculation for padding to fix subpixel rendering issues.