AI image editing through mimicking reference images