Image paths are relative to dir. in which the input file is present.