remove trailing whitespace + use local image sprite