Move `image_id_from_url` method back to init.php to be available to both the types and sanitize classes.