Fix gravatar and implement pagination