wrap/clone setpixel modes, bugfixes