generate thumbnail endpoint added