updating imwrite filter