gl: set max scratch size to 1024

when blur radius is small and the image is big, use small scratch reduces
blurred image quality