huge images: fix bug introduced into masks (path shape)