Statistics for Adding Lighting and Viewing Effects to Digital Images