Light sensor and image processing apparatus