     @$room.css transform: "scale(#{@roomScalingFactor()})"
 
   scaleArtwork: ->
-    @$artwork.css @$placeholder[0].getBoundingClientRect()
+    @$artwork.css @getRect(@$placeholder)
 
   # Called on the throttled window resize event
   scale: =>

    @$el.attr 'data-state', 'out'
    @$artwork.
      removeClass('is-notransition').
      css @$img[0].getBoundingClientRect()

  scalePlaceholder: ->
    @$placeholder.css


  roomScalingFactor: ->
    roomRatio       = @$room.width() / @$room.height()
    viewportRatio   = @$el.width() / @$el.height()
    direction       = if viewportRatio > roomRatio then 'width' else 'height'
    factor          = @$el[direction]() / @$room[direction]()
    Math.ceil(factor * 100) / 100

  artworkScalingFactor: ->
