Use datauri rather than iframe for preview