Center current image on window resize or rotate.
Renamed setupPagers to buildPagers