Changed the image datatype from logical to single

Changed the image datatype from logical to single so that the images are
able to go from one layer to another with single floating point format
and reflect the value of g between layers.