     func generateMemedImage() -> UIImage {
         
         // Hide toolbar and navigation bar
-        self.navigationBar.hidden = true
-        self.toolbar.hidden = true
+        navigationBar.hidden = true
+        toolbar.hidden = true
         
         // Render view to an image
-        UIGraphicsBeginImageContext(self.view.frame.size)
-        self.view.drawViewHierarchyInRect(self.view.frame, afterScreenUpdates: true)
+        UIGraphicsBeginImageContext(view.frame.size)
+        view.drawViewHierarchyInRect(view.frame, afterScreenUpdates: true)
         let memedImage : UIImage = UIGraphicsGetImageFromCurrentImageContext()
         UIGraphicsEndImageContext()
         
         // Show toolbar and navigation bar
-        self.navigationBar.hidden = false
-        self.toolbar.hidden = false
+        navigationBar.hidden = false
+        toolbar.hidden = false
         
         return memedImage
     }

    
    func textFieldDidBeginEditing(textField: UITextField) {
        if textField == bottomTF {
            self.subscribeToKeyboardNotifications()
        }
    }
    
    func textFieldDidEndEditing(textField: UITextField) {
        textField.clearsOnBeginEditing = false
        if textField == bottomTF {
            self.unsubscribeFromKeyboardNotifications()
        }
    }
    
    override func touchesBegan(touches: Set<NSObject>, withEvent event: UIEvent) {
        self.view.endEditing(true)
    }

    

    
    // Move view up when keyboard is shown
    func keyboardWillShow (notification: NSNotification) {
        view.frame.origin.y -= getKeyboardHeight(notification)
    }
    
    // Move view back down after keyboard is hidden
    func keyboardWillHide (notification: NSNotification) {
        view.frame.origin.y += getKeyboardHeight(notification)
    }
    
    func getKeyboardHeight(notification: NSNotification) -> CGFloat {
