Fixed width and height mixup when calculating CGRect center.