Moved body background setting code to beginning of animate function