Modifications to the XSL to handle image renaming