No, images do not count against doc size.
There will be a tiny amount of data required in the doc to point to the image, but that’s the only thing that would be included in doc size. It’s about the amount of text you would need for an HTML link to an image and that’s it.