This code worked pretty well, seems that arranging coordinates in the svg is the way to go. Still not centered, just almost. I'm gonna try to understand more about why it works a bit later. Exported svg code from Illustrator. In Illustrator I made the artboard iPad retina size to future proof it a bit since it will scale on screens that are smaller. Centered it on this artboard and exported.