fix image value is not assigned bug