It appears that floated images are given margins which assume a left float, even when a right float is specified.

If the software can't distinguish, it seems reasonable to simply give a uniform margin on all sides.