Check to see if the user has an image first before extracting imageid