added basic functionality for adding image