adds centerPointer, fixes problem with center and resizing