fix image preview autoedit