Added option of loading image as a float (provided by Claudia Lindner)