Retrieves image in either json or jpeg format.
Retrieves image in different formats from /gallery/random_image API.
Example #1 - Retrieve image: Url: /gallery/retrieve_image?body={"id":"desktop_patriots/pats_background_on_wood.jpg", "ratio": 1.0, "output": "image"}
Query: { "id": "<image-id>", (Required) "ratio": <width:height aspect ratio of returned image>, (Required, eg. 1.0 for 1:1, 1.5 for 3:2) "output": "<'json' or 'image'>" (Optional, output type) }
Response: <Binary-image> for "image" OR { "id": "<id-of-image>" "image_base64": "<encoded jpeg>" (Base 64 encoded jpeg output) }