Photos you attach to a transaction stay on the device — they are not part of the account backup, so a new phone starts without them. Including them means uploading image files, which is a separate build.
Vote if losing the photos on a phone switch would bother you.