Added image histogram computation