Fix bug when the image doesn't have an extra css class.