Added a null check that could produce a warning if strokeWidth was not provided in the POST.
Added a todo as recommended during code review to make future work easier.
Cleaned up callbacks to pass coder
Merge pull request #11 from MorganDawe/7.x

Added a null check