AppIm: Linear Spaces for Image-based Appearance Editing