add DrawCell.obtain_size function