Add options for graphics, refactor graphics creation routines
Update graphics after mouse release

This ensures that the selection is redrawn correctly
Merge branch 'master' into initial-zlab-dev