increase performance of 'ratio' feature by using drawImage instead of arc