Abstract file path generation for images
Store only the image key in DB

Instead of storing the whole filepath, only store the image key.
This makes the image directory movable and the DB reusable.