Updated image logic to load relative paths from the assets_dir config setting.