Emit socketError rather than badData on error
payload length calculation style change
Improved annotation editing.

Annotation box scaling now works the same way as the selection box.
Also changed box outline color.
Include visible annotations in saved images