The :align: option lets the subsequent content flow around the image.
Using it for two images side-by-side is possible but a bit unintuitive.
Change the order of the images in the source: define the second image first and align it to the right. The following element will flow up to the left of this image (if there is enough space).
.. image:: img2.png
:width: 45%
:align: right
.. image:: img1.png
:width: 45%
A list-table can be used, too
.. list-table::
:width: 100%
:class: borderless
* - .. image:: img1.png
:width: 100%
- .. image:: img2.png
:width: 100%
this can be easily expanded into a "picture grid".
.. class:: center
goes before both.. image::
s? – Metalworking