i thought a "generated" way so we dont need to draw anything from the i can say thousands of unit images in all alternatives.
here is a way where the logic can flip automatically the image : it has its drawback, if an unit is not symmetrical than would look not so nice changing hands of weilding a sword
but as on trebuchet or a tank would look better as that is symmetric.
any ideas?