OK, you could also try some Sass magic:
```scss
olControlpanup {
	div& {
		// Rules for when it's inside a div
	}
	img& {
		// Rules for when it's inside a img
	}
}
```