added ability to use size in percentage, close #3