advanced_image_processing: Need to force values that are nan to zero. Fixed argument order to reflect this.