Fix leaked CGImageRef.
Merge pull request #7 from proxi/master

Fix leaked CGImageRef.