moved getthumb function to directoryobject callback