Added loading and converting image to float