Then, yes, I would say you do need to store that full path in your DB. Unless you have that in other fields in the record associated with each image.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.