fix image bug, tested