Welcome to Android Central! Which phone? Is this Google's Messages app, or the stock messaging app from the phone manufacturer? Are you saying that you want it to default to your Google Photos library?
The difference, though, is that Google Photos can give the app direct access to your photos saved in the cloud, while the stock Gallery app usually can't.