fix first slide extraction
add title extraction
split some code
fix editor
fix image embedding in preview