Use x,y as coordinates of the origin image.
Fix wrong calculation of second adjust parameter.