removed PI.flip() line in draw