[code] fix image/video loading