Fixed thumbnail drawing function, website display still buggy