Automatically 'opitimize images' in build script