Fix problem with transparent PNG

This should close issue number 3. There was a divide by 0 error.

https://github.com/gokercebeci/canvasResize/issues/3
Merge pull request #5 from JessieAMorris/master

Fixes PNG issue.