added working grid+resize, random & gradient modes