When adding an image to the library from an URL, if the URL contains parameters (e.g. ?width=200&height=200), the link will not be accepted. In this commit, we remove these parameters from the URL before checking the image, so that the URL is considered valid. We also remove these parameters before computing the mimetype of the image, since it is computed based on the end part of the URL. task-2618494 Part-of: odoo/odoo#75205