Try comparing images using RMS error metric.