Adds maskW and maskH attributes