Rectification and Registration of Digital Images and the Effect of Cloud Detection