Added image resizing and thumbnails