Everything is stored only on this iPhone. Export saves one file with all entries and photos: choose Save to Files → iCloud Drive so it follows you to a new iPhone. To restore, open Wallet on the new phone and tap Import Backup.
Drop to log a spend
The photo is attached to a new spend