DEV: added path option for image generation
DEV: added path option for image generation

Former-commit-id: eb22cdd209ca15ab7d7d7623ec4f3df5165e8852
Former-commit-id: 939cb996547ea0cfd7119b0592551c11b56a1fca
3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox