Extract string to avoid creation on stack entering.
Extract image visibility and use inline styling instead of class name.

This attempts to decrease style invalidation. Not really very useful.
Fixes nesting and positioning issues.

Makes the template more controllable by sytyleing rules.