adding code snippet for resizing masks