Found the filename field and adapted the code. Now trying to see if the img.filename and name variables output outside of the event closure properly.