fixing width calculation on bitmaptext