Added support for vertical/horizontal padding