added thumbnail shadows
fix leaks