Script for using json polygons for image masks

Seems to work fine on my machine....really some further data to check whether hole treatment is okay.