Revert "use relative paths to create images from a file. This way it also works if"

This reverts commit 3488f0b77a2d03747bf20b5d870639cb40440083.