I'm not sure this logic is entirely correct. An image that is anchored as a character should perhaps still have the alignment buttons enabled.

This particular change seems orthogonal to this PR.