This code is poorly abstracted, which will make it hard for anyone (including you!) in the future to adjust.  Please fix.

Both here and below, I expected to see a variable called 'offset" or something similar for the number of pixels (+/-) at which the center of the agent's eyes are offset from the center of the camera.

It is clear what 160 and 120 are (dimensions of image), but totally unclear which of the other numbers are for tweaking the perceived gaze and which are due to the change in offset between the two agent positions.  It's just a bunch of "mystery numbers" --- bad pgming practice.