add support to medium photo URLs in search results
format code and remove some tabs and empty lines