Fix hard coded mask buffer resolution