Better filtering for  mainimage