pulled in rewrite of image header from Eigen