added user_id to image. updated Image create method so that @image = current_user.images.new(). Added user_id to image show view