Better thumbnail rendering. Almost have thumbnail selection working.