Only define the WavePlotImager exe name once instead of 3 times
Switch to mutagen.File instead of trying to guess the file type based on extension