added gray image reset on image filters, fixed bug