adding image directory to media