added bool centered parameter for Button constructor