variable frame size, fixes #31