Added concurrency to resizing

I made a small change which allows the resizing to happen in parallel. AFAIK ImageMagick doesn't make use of multi-cores by itself.