Project: draw
Task (challenging): When the width or height of the rect is less than line width, keep it to be line width.