Add flipbook script based on supermamon's test script