Fixed width and height mixup when calculating CGRect center.
Merge pull request #15 from loic/master

Fixed width and height mixup when calculating CGRect center.