Remove of dot if captioned image has no attribute.