added gamma correction + pattern