Direct Image Compression of an Image Sensor Output with on-chip color filters