Added the Object Mask Parser to the sample code
Added an Object Mask parser.  The parser allows us to create 'optimal' object masks and solves the problem of errors which arise when the model object's required object mask overlaps with an object mask provided by the user