I have finally made the basic code that makes the images.
Now all i need is to create the XY DB and a new fields and a decent template