remove whitespace and imageSuffix* functions