Use absolute path when storing images

closes #1983
Merge pull request #2024 from jgillich/0.4-maintenance

Use absolute path when storing images