fixed bounding bug in color-average code; made square pixels; floats instead of ints, and size is fixed, for easier conversion to processing.js