templateUpdate function integrated in fullResolutionDetection function