fix image width and other formatting