Optimization of Nonlinear Imaging Characteristic for Wide Dynamic Range