prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  ImageView example not working on Linux
  ## Expected Behavior
  <!--- If you're describing a bug, tell us what you expect to happen. -->
  ImageView demos display both a local image file and one from a web url
  <!--- If you're requesting a new feature, tell us why you'd like this feature. -->
  
  
  ## Current Behavior
  <!--- If you're describing a bug, what currently happens? -->
  Displays the wrong path variable when image not found
  Concatenates local application path and url when attempting to display web url
  problem in rehint() function, missing attribute get_height
  
  I tried to address the first two issues with #532, still need to work on the 3rd.
  
  ## Steps to reproduce
  <!--- Provide a set of steps describing how to reproduce this bug. If you have a live example, provide the link below -->
  1. run  the application in examples/imageview
  
  2.
  
  3.
  
  
  ## Your Environment
  <!--- Provide details on your current environment you found the bug in -->
  
  * Python Version (list the specific version number)
  
  * Operating System and Version (select from the following and list the specific version number; if your OS is not listed, list that as well)
  
    - [ ] macOS - version: 
    - [ x] Linux - distro:   - version: Ubuntu 18.04
    - [ ] Windows - version:
    - [ ] Other - name:  - version:
  
  * Toga Target (the type of app you are trying to generate)
   
    - [ ] android
    - [ ] cocoa
    - [ ] django 
    - [x ] gtk
    - [ ] iOS
    - [ ] tvOS
    - [ ] watchOS
    - [ ] winforms 
    - [ ] win32
    - [ ] Other (please specify)
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `examples/imageview/imageview/app.py`
  Content:
  ```
  1 import os
  2 import toga
  3 from toga.style.pack import *
  4 
  5 class ImageViewApp(toga.App):
  6     def startup(self):
  7         self.main_window = toga.MainWindow(title=self.name)
  8         
  9         box = toga.Box()
  10         box.style.padding = 40
  11         box.style.update(alignment=CENTER)
  12         box.style.update(direction=COLUMN)
  13         
  14         # image from local path
  15         # load brutus.png from the package
  16         # We set the style width/height parameters for this one
  17         image_from_path = toga.Image('resources/brutus.png')
  18         imageview_from_path = toga.ImageView(image_from_path)
  19         imageview_from_path.style.update(height=72)
  20         imageview_from_path.style.update(width=72)
  21         box.add(imageview_from_path)
  22 
  23         # image from remote URL
  24         # no style parameters - we let Pack determine how to allocate
  25         # the space
  26         image_from_url = toga.Image('https://pybee.org/project/projects/libraries/toga/toga.png')
  27         imageview_from_url = toga.ImageView(image_from_url)
  28         box.add(imageview_from_url)
  29         
  30         self.main_window.content = box
  31         self.main_window.show()
  32 
  33 def main():
  34     return ImageViewApp('ImageView', 'org.pybee.widgets.imageview')
  35 
  36 
  37 if __name__ == '__main__':
  38     app = main()
  39     app.main_loop()
  40
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/examples/imageview/imageview/app.py b/examples/imageview/imageview/app.py
  --- a/examples/imageview/imageview/app.py
  +++ b/examples/imageview/imageview/app.py
  @@ -14,7 +14,7 @@
           # image from local path
           # load brutus.png from the package
           # We set the style width/height parameters for this one
  -        image_from_path = toga.Image('resources/brutus.png')
  +        image_from_path = toga.Image('../resources/brutus.png')
           imageview_from_path = toga.ImageView(image_from_path)
           imageview_from_path.style.update(height=72)
           imageview_from_path.style.update(width=72)
  
verification_info: {"golden_diff": "diff --git a/examples/imageview/imageview/app.py b/examples/imageview/imageview/app.py\n--- a/examples/imageview/imageview/app.py\n+++ b/examples/imageview/imageview/app.py\n@@ -14,7 +14,7 @@\n         # image from local path\n         # load brutus.png from the package\n         # We set the style width/height parameters for this one\n-        image_from_path = toga.Image('resources/brutus.png')\n+        image_from_path = toga.Image('../resources/brutus.png')\n         imageview_from_path = toga.ImageView(image_from_path)\n         imageview_from_path.style.update(height=72)\n         imageview_from_path.style.update(width=72)\n", "issue": "ImageView example not working on Linux\n## Expected Behavior\r\n<!--- If you're describing a bug, tell us what you expect to happen. -->\r\nImageView demos display both a local image file and one from a web url\r\n<!--- If you're requesting a new feature, tell us why you'd like this feature. -->\r\n\r\n\r\n## Current Behavior\r\n<!--- If you're describing a bug, what currently happens? -->\r\nDisplays the wrong path variable when image not found\r\nConcatenates local application path and url when attempting to display web url\r\nproblem in rehint() function, missing attribute get_height\r\n\r\nI tried to address the first two issues with #532, still need to work on the 3rd.\r\n\r\n## Steps to reproduce\r\n<!--- Provide a set of steps describing how to reproduce this bug. If you have a live example, provide the link below -->\r\n1. run  the application in examples/imageview\r\n\r\n2.\r\n\r\n3.\r\n\r\n\r\n## Your Environment\r\n<!--- Provide details on your current environment you found the bug in -->\r\n\r\n* Python Version (list the specific version number)\r\n\r\n* Operating System and Version (select from the following and list the specific version number; if your OS is not listed, list that as well)\r\n\r\n  - [ ] macOS - version: \r\n  - [ x] Linux - distro:   - version: Ubuntu 18.04\r\n  - [ ] Windows - version:\r\n  - [ ] Other - name:  - version:\r\n\r\n* Toga Target (the type of app you are trying to generate)\r\n \r\n  - [ ] android\r\n  - [ ] cocoa\r\n  - [ ] django \r\n  - [x ] gtk\r\n  - [ ] iOS\r\n  - [ ] tvOS\r\n  - [ ] watchOS\r\n  - [ ] winforms \r\n  - [ ] win32\r\n  - [ ] Other (please specify)\r\n\n", "before_files": [{"content": "import os\nimport toga\nfrom toga.style.pack import *\n\nclass ImageViewApp(toga.App):\n    def startup(self):\n        self.main_window = toga.MainWindow(title=self.name)\n        \n        box = toga.Box()\n        box.style.padding = 40\n        box.style.update(alignment=CENTER)\n        box.style.update(direction=COLUMN)\n        \n        # image from local path\n        # load brutus.png from the package\n        # We set the style width/height parameters for this one\n        image_from_path = toga.Image('resources/brutus.png')\n        imageview_from_path = toga.ImageView(image_from_path)\n        imageview_from_path.style.update(height=72)\n        imageview_from_path.style.update(width=72)\n        box.add(imageview_from_path)\n\n        # image from remote URL\n        # no style parameters - we let Pack determine how to allocate\n        # the space\n        image_from_url = toga.Image('https://pybee.org/project/projects/libraries/toga/toga.png')\n        imageview_from_url = toga.ImageView(image_from_url)\n        box.add(imageview_from_url)\n        \n        self.main_window.content = box\n        self.main_window.show()\n\ndef main():\n    return ImageViewApp('ImageView', 'org.pybee.widgets.imageview')\n\n\nif __name__ == '__main__':\n    app = main()\n    app.main_loop()\n", "path": "examples/imageview/imageview/app.py"}], "after_files": [{"content": "import os\nimport toga\nfrom toga.style.pack import *\n\nclass ImageViewApp(toga.App):\n    def startup(self):\n        self.main_window = toga.MainWindow(title=self.name)\n        \n        box = toga.Box()\n        box.style.padding = 40\n        box.style.update(alignment=CENTER)\n        box.style.update(direction=COLUMN)\n        \n        # image from local path\n        # load brutus.png from the package\n        # We set the style width/height parameters for this one\n        image_from_path = toga.Image('../resources/brutus.png')\n        imageview_from_path = toga.ImageView(image_from_path)\n        imageview_from_path.style.update(height=72)\n        imageview_from_path.style.update(width=72)\n        box.add(imageview_from_path)\n\n        # image from remote URL\n        # no style parameters - we let Pack determine how to allocate\n        # the space\n        image_from_url = toga.Image('https://pybee.org/project/projects/libraries/toga/toga.png')\n        imageview_from_url = toga.ImageView(image_from_url)\n        box.add(imageview_from_url)\n        \n        self.main_window.content = box\n        self.main_window.show()\n\ndef main():\n    return ImageViewApp('ImageView', 'org.pybee.widgets.imageview')\n\n\nif __name__ == '__main__':\n    app = main()\n    app.main_loop()\n", "path": "examples/imageview/imageview/app.py"}]}