You could have a db schema like the following
When you input a user into the users table, you also input a blank record into user profiles where user_id equals the last inserted id on the users table. You can get this with the mysql_insert_id() function.
Then you do a sql like
select profile_image from user_profiles where user_id = '$user_id'
That should be enough to get you started.