added tumbnail generation
fixed image url for thumbnails