Rescale and centre square depending on device