Added parameter that defines if the panels should have rounded corners or not.