I just noticed that 'i' should be trimmed from whitespaces, because a whitespace between the path and the '>' will result in an incorrect filepath.
e.g. <icon=/somewhere/here.xbm > will result in the path being '/somewhere/here.xbm ' which can be assumed to be unwanted.