Convert static variables to module level

Static variables maintain their value for the life of the program -
something I forgot.  We don't want that.
Fix bound values for feathered selections against an image edge