Fixing problem with image fields containing whitespace resulting in broken login. Closes #145.