Python wand drawed polygons instead of rectangle when stroke_width > 2
Question: I'm not sure what I did wrong, but this is really strange. Not sure whether I
should submit a new issue to wand's Git repository.

edit: I am trying to draw a rectangle.

Consider the following code:

    
    
    from wand.drawing import Drawing
    from wand.color import Color
    from wand.image import Image
    def drawer():
        square = Drawing()
        square.fill_color = Color('#fff')
        square.stroke_width = 4
        square.stroke_color = Color('red')
        square.rectangle(left=100, top=100, width=100, height=100)
        return square
    
    im = Image(width=500, height=500)
    sq = drawer()
    sq.draw(im)
    im.save(filename='test1.png')
    

And this outputs:

[![weird image
1](http://i.stack.imgur.com/4fiHj.png)](http://i.stack.imgur.com/4fiHj.png)

From what I've tried-and-error'd, this won't happen if `square.stroke_width`
is less or equal than 2.

I'm not sure whether it's Wand's bug or I am doing something wrong.


Answer: It should work fine according to <http://docs.wand-
py.org/en/0.4.1/guide/draw.html> . If you go to the bottom of the page it
shows how to draw polygons. Compared to what your code looks like, it should
work fine. I don't know what's wrong, but I'm pretty sure your code is OK.

