fix press grayscale on firefox and safari