Get basic preview working
Refactor flip into separate functions per element