drawbox: Respect thickness parameter