Input Image:

Reference Image:

Output: