I believe this is rooted in the way stroke is applied to Shapes vs. Images. For Shapes, stroke is applied inside, while for Images, stroke is applied to the center. It would be great to have both applied outside so that snap-aligning Shapes against Images carries alignment over to applied stroke. Please see the gif below for reference:

