use relative paths to create images from a file. This way it also works if
no user is logged in (e.g. public gallery share)
Merge pull request #6000 from owncloud/use_relative_path_to_create_images

use relative paths to create images from a file.