Fix problem with images referenced within svg files. (bug#19373)