fix image preview