If your pictures and contacts are not in your sim card, for sure your will loss them. If your pictures are in a media card and your contacts on the sim card, you don't have to worry about them becuase they won't be deleted when you reset your phone.
Note: if you have a media card on your phone, please take it out before resetting the phone.
Good Luck!!