vm & vnet commands updated

I've synced it with latest dev branch
You are right, thanks, I've move callbacks content to separate function named "deleteImageCallback"