Fixed saving of 16-color images
Assume rgb can't be < 0
Reduce bad histogram weights
Faster color search