[#70373766]: setSpritePosition: take into account sprite size

Setting a sprite to the center/middle or right/bottom position needs to take into account the sprite's size. Previously, I used a table which assumed that all sprites were 100x100 (2x2 on the grid coordinate system). Now, we need to compute the x,y position for the elements at runtime.