Merge pull request #1 from olest/master

Creating plot only if img_name is set