fix image thumbnailing