Trust me, trying to add in a trainer sprite repositioner function would be much more effort, far more than is required.
To be honest, I think you're just not understanding what I'm saying. The scripts are fine, the trainer sprites themselves are positioned properly in-game. You just need to edit the picture inside each sprite, using a graphics-editing program of your choice.