clear the pixels when changing modes. added double spin