adding image reader and histogram calculator