added custom thumbnail capability