the second is the better option.
in your images table, just have a field where you can reference your user and their pictures.
/var/www/images/mysite/* is your images directory.
your mysql table is called images
table has the following fields..
img_id is your key
img_userid is your key to assoc the user
img_name is the name of the file uploaded into the /var/www/images/mysite directory
img_uploaded is the datetime stamp when it was actually uploaded.
Then you can map the links of the photos, call them whenever needed, etc.etc.etc.