cleaned up main image, added permalinks, added search function