fix image script