fixed image disappearing issue, better sentence splitting