i don't think that the way you do this is bad, but if you store images
in server filesystem you needn't delete images by hand when you want
delete user. you can make 'select * from images where userid=$userid'
than you get all filenames that belong to user. you delete them and
than delete user from database.