writeImage method for visalizer, small overlay algorithm correction, updated anomalystats