Compare two images using the root mean squared analysis