If the image type is FloatType the image is displayed as white. After converting the FloatType image to Unsignedbytetype everything works fine.