image-dd main function finished