 		if handData
 			@hands.width = handData.width
 			@hands.height = handData.height
-			@hands.center()
-			@phone.center()
+			centerLayer(@hands)
+			centerLayer(@phone)
 			@handsImageLayer.size = @hands.size
 			@handsImageLayer.y = 0
 			@handsImageLayer.y = handData.offset if handData.offset


			@_updateDeviceImage()
			@hands.scale = @_calculatePhoneScale()
			@hands.center()
			@phone.center()

			[width, height] = @_getOrientationDimensions(
				@_device.screenWidth / contentScaleFactor,

		@background.classList.add("DeviceBackground")
		@_previousBackgroundColor = @background.backgroundColor

		@hands    = new Layer name: "hands"
		@handsImageLayer = new Layer parent: @hands, name: "handsImage"
		@phone    = new Layer parent: @hands, name: "phone"
		@screen   = new Layer parent: @phone, name: "phone"
		@viewport = new Layer parent: @screen, name: "screen"
		@content  = new Layer parent: @viewport, name: "viewport"

		@content.classList.add("DeviceContent")

		@hands.backgroundColor = "transparent"
		@hands._alwaysUseImageCache = true
		@handsImageLayer.backgroundColor = "transparent"
		@hands.classList.add("DeviceHands")

		@phone.backgroundColor = "transparent"
		@phone.classList.add("DevicePhone")
