1. A method to generate an image, the method comprising: determining a plurality of offset vectors for portions of a first image by comparing the similarity of the portions to portions of a second image; determining the validity of a first offset vector of the plurality of offset vectors by comparing the first offset vector with other offset vectors of the plurality of offset vectors; changing the first offset vector where the first offset vector is determined as invalid; and generating an image by applying the plurality of offset vectors to the portions of the first image.