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