Fix image directive.