preprocess_paintings.m: bugfix