Fix memory leak in method EncodeImageInternal for histogram_image. Change-Id: Ia1cfb96d9e6c120630732e2b5f39688376d1d208