Implement hero sprite functions. Fix #155.