Resize mask image to match actual map dimensions