Added thumbnail generation for each uploaded file