Drawing text in a bounding box
Added bounding box calculation to drawText