Route for thumbnail generation