A method for encoding and decoding an image signal