Statistics of natural images as a function of dynamic range