limiting canvas size