update diagram and fix image links on individual post views