Moved to unboxed vectors for internal image representation. Added strictness for some accumulators. UNPACK'd some fields.