flattenImages - How do I select specific variables to copy from the input to the output table?