Use pageid for image identification

This way, permaliks stay permanent even if we scrape differently.