added thumbnail resizing