Added 'dest' param for copying images before optimization