Add pages and fix image bug