added userid to image table