Changed embedded images path calculation and config.