Image processing system with 16 bits support