running averaged images: small fix