Fixed not saving average color as previous color sometimes