Framework changed to save foreground .png mask instead of .jpg