adds PERCENT render mode; fixes dimensions calculation