Would it make more sense to have this take a string instead of a bool?  That would allow you to do more than just xMidYMid or none.