Major re-write; images load faster and bit-math is speedy.