Added function to get only area of canvas