Ensure that the original image url gets written to remote_image, rather than the proxied url). Otherwise, the url validation logic in the image_proxy/ endpoint does not work.
Remove an unnecessary URL decode step in the image_proxy logic. The URLs at this point are already decoded enough, any remaining encoded parts are actually part of the original URL, so decoding them again here will break such URLs (and make the validation fail).
This fixes two issues with image proxying:
remote_image
, rather than the proxied url). Otherwise, the url validation logic in the image_proxy/ endpoint does not work.