Use double quotes always, for consistency.
Change the name of the function changing the state of the component.
Remove the exec dependency we are not using anymore.
Store the requests in a MongoDB database.
Use the database id instead of the autogenerater one.
Add a service to respond to GET messages.
Add a router to handle the image routes.

With this change when we create an image it pushes an URL to the
browser. This way we have persistent URLs that we can share. Also
modified the get method to use a query parameter.
Use the relative path, it is enough in this situation.
Print the error to the console when the DB search fails.