Inferring painting style with multi-task dictionary learning