Welcome fw66! Thanks for the photos.
Usually, when either of the engine covers is removed, some oil will drain out. Buy some sealant like Permatex Ultra Black or Drei Bond (Three Bond) 1209. Either purchase a new cover gasket or clean the oil from your old one thoroughly. Scrupulously follow the gasket mounting instructions in the BMW service manual downloadable from this site, or watch Chris Harris's YouTube video describing valve clearance adjustment of 2V Bricks. When you are ready to mount the gasket, the mating surfaces of the head, cam cover and gasket must be
completely free of oil.
After the task is concluded, I advise doing a compression test on the engine when its warm. That will help determine if there could be leaks from valve stem seals, rings or the head gasket. A leak-down test after the compression test will differentiate between those sources. If your preference is just to move on because both the leak and the rough engine performance is stopped by the gasket restoration, I can't blame you. Magical thinking is a beautiful state of being, while it lasts.

Overfilling of the crankcase with oil could also be part of this problem so pay attention to the oil level in the sight glass and don't fill it all the way to the very top of the ring. I check the oil after the engine has been run then shut off for a few minutes. I want to see the oil level somewhere above the middle dot and just below the top of the ring.
Lurking out in your future are the thorns among the roses—a propane test of the crankcase z-tube and the throttle body rubber manifolds for leaks, inspection of the throttle body vacuum port caps for integrity, a cleaning of the air filter, followed by a valve clearance adjustment, a throttle body balance and a CO adjustment.
