Add filter in c++ to resize image.