fixes #3, Wait for ImageOptim.app process to complete
DRY list of file types
1.1.1