Improved ImageOptim call to fix foreground processing problems.
Merge pull request #2 from wojtekn/fix_imageoptim

Improved ImageOptim call to fix foreground processing problems.
Cheers, very cool!
I wasn't aware of the synchronous operation mode, I simply Ctrl-Z the script unitl ImageOptim had completed processing the images.  
Much nicer now!