moved some code and created FlickrAuthentication class