image/color: implement
image/color: improve ModelFunc
image: change api, use machine order instead of big-endian