Design of low power image sensor for computational photography