Only apply NoDataValue when it is set in the input image

Also explicitly cast NoDataValue to GDAL data type
Include test based on USGS elevation data