Fix line endings.
Add wrappers and checks.
Add class for no image.