Removed old code
Fixed correct viewport when drawing image with higher resolution than target
Merge pull request #11 from EmilWestergren/master

Fixed error and cleaned code