Image.ColorTable: Fixed some memory leaks in add().

If the intermediate hashtable was too small, it (and the colors
it contained) was leaked when the table was reallocated.

Also adds a fall though marker.
Image.X: Fixed argument order.

Note that this bug had no detectable effect, since
both swapped arguments had the same value (8).