I guess the additional pixels might come from an interpolation step and/or quality reduction during the saving/export of the annotated mask. Which format are you currently using and are you able to define some kind of quality level while storing the mask or use a lossless format?