Update filename handling + pixel averaging method