Fix overwrite of png file with xml