Update image, set and collection

Updated image, set and collection to use new flickr database and
phpFlickr initialization objects. Database connections are no longer
left open.