Implements scaleMode and align

Addresses resizing of the button for #276