Added support for post thumbnails using a new method to pass arguments to a callback function.