Draw progress bar using canvas instead of CSS hack