compare pictures with average of r,g and b channel