add exception handle, new arg "--with-png", remove duplicate script copy operation.