adding lib for image I/O and histogram plotting