Flashing a stock ROM will erase EVERYTHING. Your photos, contacts, SMS, and app data will be permanently lost unless backed up. The "Extra Quality" process does not include a data preservation option—it is a full factory restore.
Flashing will erase all data. Back up your photos, contacts, and messages.