Fix unused variable
Work on thumbnail helper