             toItem:self,
             attribute:NSLayoutAttribute.Right,
             multiplier:1,
-            constant:0)
+            constant:rightMargin)
         
         addConstraint(layoutImageTop)
         addConstraint(layoutImageBottom)
         addConstraint(layoutImageLeft)
         addConstraint(layoutImageRight)
+        
+        setNeedsLayout()
     }
 }
            toItem:self,
            attribute:NSLayoutAttribute.Left,
            multiplier:1,
            constant:0)
        layoutImageRight = NSLayoutConstraint(
            item:imageView,
            attribute:NSLayoutAttribute.Right,

        imageView.clipsToBounds = true
        imageView.image = controller.image
        
        let screenRect:CGRect = UIScreen.mainScreen().bounds
        let topMargin:CGFloat = controller.imageRect.minY
        let leftMargin:CGFloat = controller.imageRect.minX
        let rightMargin:CGFloat = controller.imageRect.maxX - screenRect.maxX
        let bottomMargin:CGFloat = controller.imageRect.maxY - screenRect.maxY
        
        addSubview(imageView)
        addSubview(bar)
        
