fix image script.