auto detection of light and gaussian blur