Double buffered form to avoid flickering