runtime: Allow to pass hostname as commandline option

Use to unhardcode the URL for preview images