I have been developing a site that allows users to upload images, progress has been great, but i recently realized that users may upload copyrighted material and then i would be liable. So i was just wondering how i would go about making a proper TOS agreement to absolve me of such legal responsability.

Thanks