There are various methods to “align” the image however what you have done is use; align=“middle” (aligns the centre of the image with the current baseline) which would align the image vertically are you trying to align the image vertically or horizontally?
In either case you’d find it easier if you wrapped the image in a block of a specific size so you could see the effects of your alignment (as it does work) but I am not sure that is what you are actually after.