Hopefully corrected error with HSP frame in graphics.py

@bamueh can you give this a try?

Fixes #264 (I hope!)