add centerHorizontallyWithOffset: and centerVertically helper methods