Consistent behavior for file paths for images too. Plus: image paths are not kept as absolute paths inside the session. This makes regeneration of images stable.