Add hidpi support

Closes #5, closes #6.