Merge "Refactor remote image remote instance create function."