Correctly implement color moments