Image encoding method and device, and decoding method and device therefor патент