PHP script (using GD) to generate sparklines