added method to get master width and height for configuration