Added function to add padding to text bitmaps