Reimplement page_images as Post write hook