Refactor fraction pie a bit

Test Plan:
python app.py
hit http://localhost:5000/
Select "30. Fraction Pie"
Click "Convert to Image"

Auditors: joel