Resize images sychnoriously

If you use async and there are many images to resize this easily breaks almost any system.
Merge pull request #13 from dimitarkolev/patch-1

Resize images synchronously