add method calculating heat image from gray image