You can store the images in the database as blobs (varbinary for mssql). That way you don't have to worry about the storage or directory structure. The only downside is that you can't easily browse the files, but that would be hard in a balanced directory tree anyway.