String replaced with StringBuffer in ImageStatistics.Write