advanced_image_processing: Declared internal variables in preprocess_data before entering if statements.
advanced_image_processing: Need to force values that are nan to zero. Fixed argument order to reflect this.`