Added thumbnail resizing