Fixed bug with statistic alignment in output images