adding image component directive