Van Gogh and the Algorithm: How Math Can Save Art