Hi,

well - you define a way of naming the images in the images folder that can be used by the database design. If there is at most one image per apartment, and apartment have a primary key, you could use that id for image name.
If there are multiple images, you could create an image table, use a primary key id for the image filename, and have an apartment_id column in that table to relate the images to the objects
In either setup there could be an "image name" column storing the original file name , for an image caption or the filename for "save as"

Musicman