 
     override func viewDidLoad() {
         super.viewDidLoad()
-
-        NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(photoImageUpdated(_:)), name: Notification.photoImageUpdated, object: nil)
 
         scalingImageView.frame = view.bounds
         scalingImageView.imageType = photo.imageType

    }

    // MARK: Selectors

    @objc private func photoImageUpdated(sender: NSNotification) {

        // TODO: check photo

        guard let photo = sender.object as? Photo else {
            return
        }

        scalingImageView.imageType = photo.imageType

        let needLoad = (scalingImageView.imageType?.image == nil)
        if needLoad {
            loadingView.startAnimating()
        } else {
            loadingView.stopAnimating()
        }
    }

    @objc private func didDoubleTap(sender: UITapGestureRecognizer) {


        return longPress
    }()

    deinit {
        scalingImageView.delegate = nil

