added custom thumbnail image functionality