Version2.1: change intermidiate image from int to float