Set up iPhone as new iPhone without losing photos and messages

I want to set up my iPhone as new instead of restoring from iCloud backup, but I don't want to lose my photos and text messages.

Moblogging on my Palm