Move mask formatting from placeholder to it's own attr

Fix for #181