added a dialog class with dynamic borders using an image