change image to float