Masks saved by sagmm changed to save as png format instead of jpg