Reverted change and added check for stroke_pattern.
Reverted change and added check for stroke_pattern.

Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick