fix image JS