Added copy logic for http and ftp image and impose sequence control to avoid racing condition