 				// just center image
 				imageView.frame = CGRect(center: bounds.center, size: image.size).integerRect
 			}
+
+			imageView.image = image.imageByScalingToSize(imageView.frame.size, scale: 0)
 		}
 	}
 


class CenteredImageView : UIView {

	private (set) var imageView:UIImageView!

	required override init(frame: CGRect) {


	var image:UIImage? {
		get {
			return _image
		}
		set {
			_image = newValue
			setNeedsLayout()
		}
	}
