Update handlers.py

Fixes bug rendering images on Windows.
Merge pull request #6 from alfredodev/patch-1

Changed open mode in handlers.py