Getting preview to work... I think

I think I have all the edge cases cornered now and we're ready to go.