Trying out adaptive threshold with resized image