Made sprites draw centered automatically

Having the sprites draw centered makes a lot of things easier. Also
added a dim variable to make operations involving image dimensions
cleaner. Also added basic collision detection between player bullets and
ememies, but it doesn't work yet so I have to fix it.