Fixed bug where images would get class false/undefined when initially created.